<% if @cultural_heritage_conservational_states.size > 0 %>

<h1>Listado de Estados de Conservación</h1>

<table class="paginated_table sorted_table">
  <thead>
  <tr>
    <th>Nombre</th>
    <th>Descripción</th>
    <th>Acciones</th>
  </tr>
</thead>
<tbody>
<% @cultural_heritage_conservational_states.each do |cultural_heritage_conservational_state| %>
  <tr>
    <td><%= cultural_heritage_conservational_state.name %></td>
    <td><%= cultural_heritage_conservational_state.description %></td>
    <td>
      <%= link_to image_tag("navi/search-16-ns.png", :border => 0, :title => 'Mostrar'), cultural_heritage_conservational_state %>
      <% if (user_signed_in? && ([2].include?(current_user.role))) %>
        <%= link_to image_tag("navi/pencil-16-ns.png", :border => 0, :title => 'Editar'), edit_cultural_heritage_conservational_state_path(cultural_heritage_conservational_state) %>
        <%= link_to image_tag("navi/cross-16-ns.png", :border => 0, :title => 'Eliminar'), cultural_heritage_conservational_state, :confirm => 'Esta Seguro?', :method => :delete %>
      <%end%>
      <%#= link_to 'Mostrar', cultural_heritage_conservational_state %>
      <%#= link_to 'Editar', edit_cultural_heritage_conservational_state_path(cultural_heritage_conservational_state) %>
      <%#= link_to 'Eliminar', cultural_heritage_conservational_state, :confirm => 'Esta Seguro?', :method => :delete %>
    </td>
  </tr>
<% end %>
</tbody>
</table>

<% else %>
  <p>Ningún Estado de Conservación Encontrado</p>
<% end %>
<br />
<% if (user_signed_in? && ([2].include?(current_user.role))) %>
<%= link_to 'Nuevo Estado de Conservación', new_cultural_heritage_conservational_state_path %>
<%end%>